﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="VirtualTournaments.Frontend.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Virtual Tournaments - Login</title>
    <link href="App_Themes/LoginStyle/LoginStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="LoginTableDiv" > 
    <asp:Table runat="server" ID="LoginTable" HorizontalAlign="Center" CssClass="LoginTableCssClass">
        <asp:TableRow>
            <asp:TableCell HorizontalAlign="Center">
                <asp:Label ID="LabelUserName" runat="server" Text="User Name" CssClass="LoginLabelCssClass"></asp:Label>
            </asp:TableCell>
            <asp:TableCell HorizontalAlign="Right">
                <asp:TextBox ID="TextBoxUserName" runat="server" Width="100%" CssClass="LoginTextBoxCssClass" ></asp:TextBox>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorUserName" runat="server" ErrorMessage="User name is required" ControlToValidate="TextBoxUserName">
                </asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell HorizontalAlign="Center">
                <asp:Label ID="LabelPassword" runat="server" Text="Password" CssClass="LoginLabelCssClass"></asp:Label>
            </asp:TableCell>
            <asp:TableCell HorizontalAlign="Right">
                <asp:TextBox ID="TextBoxPassword" runat="server" Width="100%" TextMode="Password" CssClass="LoginTextBoxCssClass"></asp:TextBox>
            </asp:TableCell>
            <asp:TableCell>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassword" runat="server" ErrorMessage="Password is required" ControlToValidate="TextBoxPassword">
                </asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow >
            <asp:TableCell HorizontalAlign="Center">
                <asp:Button ID="ButtonLogIn" runat="server" Text="Log in" Width="50%" OnClick="ButtonLogIn_Click" Font-Italic="true" Font-Names="Calibri"
                Font-Size="X-Large" Font-Bold="true" ForeColor="Black" BackColor="CadetBlue" />    
            </asp:TableCell>
            <asp:TableCell>
                <asp:Label ID="LoginFailedMessageLabel" runat="server" Text="" Font-Size="X-Large" Font-Bold="true" ForeColor="Red"></asp:Label>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    </div>
    </form>
</body>
</html>
